<nav class="navbar navbar-default">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="${base}/">一起</a>
        </div>

        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">

                <li><a href="${base}/groups">导师小组</a></li>

                <li><a href="${base}/user-groups">私人小组</a></li>

                <li>
                    <a href="${base}/msg">
                        <%if(has(messageNumber)){
                        if(messageNumber!=0){%>
                        <span class="badge pull-right">${messageNumber!}</span>
                        <%}}%>
                        我的私信</a>
                </li>

                <li>
                    <a href="${base}/user/getInfo/${session.user.id!}">我的信息</a>
                </li>

                <li>
                    <a href="${base}/help">帮助</a>
                </li>

                <li>
                    <a href="${base}/public">公共区</a>
                </li>

            </ul>
            <ul class="nav navbar-nav navbar-right">
                <%if(session.user!=null){%>

                <li>
                    <a href="${base}/user/getInfo/${session.user.id!}"
                       style="color:#0081c2">${session.user.name!}</a>
                </li>
                <li>
                    <a href="${base}/user/logOut">注销</a>
                </li>

                <%}else{%>

                <li>
                    <a href="${base}/register">注册</a>
                </li>
                <li>
                    <a href="${base}/login">登陆</a>
                </li>

                <%}%>

            </ul>
        </div>
    </div>
</nav>